import request from '@/utils/request'

// 查询学科分类法列表
export function listDis(query) {
  return request({
    url: '/library/dis/list',
    method: 'get',
    params: query
  })
}

// 查询学科分类法详细
export function getDis(sysid) {
  return request({
    url: '/library/dis/' + sysid,
    method: 'get'
  })
}

// 新增学科分类法
export function addDis(data) {
  return request({
    url: '/library/dis',
    method: 'post',
    data: data
  })
}

// 修改学科分类法
export function updateDis(data) {
  return request({
    url: '/library/dis',
    method: 'put',
    data: data
  })
}

// 删除学科分类法
export function delDis(sysid) {
  return request({
    url: '/library/dis/' + sysid,
    method: 'delete'
  })
}

// 导出学科分类法
export function exportDis(query) {
  return request({
    url: '/library/dis/export',
    method: 'get',
    params: query
  })
}
